package com.tjl.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tjl.model.Commodity;
import com.tjl.service.CommodityService;
import com.tjl.mapper.CommodityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Admin
* @description 针对表【commodity】的数据库操作Service实现
* @createDate 2022-05-25 10:47:37
*/
@Service
public class CommodityServiceImpl extends ServiceImpl<CommodityMapper, Commodity>
    implements CommodityService{

    @Autowired
    private CommodityMapper mapper;

    @Override
    public Commodity getOneById(Integer id) {
        return mapper.getOne(id);
    }
}




